<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="keywords" content="{$config[4]['system_content']}">
  <meta name="description" content="{$config[5]['system_content']}">
  <title>{$config[0]['system_content']}</title>
  <link rel="icon" href="{$config[1]['system_content']}">

  <link href="./static/home/default/bootstrap/css/bootstrap.min.css" rel="stylesheet">
  <link href="./static/home/default/css/cl-css.css" rel="stylesheet">
  <link href="./static/home/default/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  <link rel="stylesheet" href="./static/home/default/highlight/styles/railscasts.css">
</head>
<body>
<div class="cl-header container-fluid">
  <div class="header-content container">
    <nav class="navbar navbar-expand-lg navbar-light">
      <a class="navbar-brand" href="index.html">
        <img src="{$config[1]['system_content']}" width="144" height="72" alt="">
      </a>
      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
      </button>
      <div class="collapse navbar-collapse justify-content-end" id="navbarNav">
        <ul class="navbar-nav">
          <li class="nav-item {if $type == 'index'}active{/if}">
            <a class="nav-link" href="/">首页<span class="sr-only">(current)</span></a>
          </li>
          {if !empty($navs["top_nav"])}
          {volist name="$navs['top_nav']" id="tn"}
          <li class="nav-item">
            <a class="nav-link" href="{$tn.nav_path}">{$tn.nav_name}</a>
          </li>
          {/volist}
          {/if}
          <!--                    <li class="nav-item">-->
          <!--                        <a class="nav-link" href="#">教程</a>-->
          <!--                    </li>-->
          <!--                    <li class="nav-item">-->
          <!--                        <a class="nav-link" href="#">模板</a>-->
          <!--                    </li>-->
          <!--                    <li class="nav-item">-->
          <!--                        <a class="nav-link" href="#">日记</a>-->
          <!--                    </li>-->
          <!--                    <li class="nav-item">-->
          <!--                        <a class="nav-link" href="#">关于</a>-->
          <!--                    </li>-->
        </ul>
      </div>
    </nav>
  </div>
</div>

<div class="cl-cantainer container">
  <div class="row">
    <div class="col-md-9 cl-left">

      <div class="recommend-index">
        {if !empty($rotations)}
        <div class="recommend-top">

          <div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
            <ol class="carousel-indicators">
              <li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
              <li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
              <li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
            </ol>
            <div class="carousel-inner">
              {volist name="$rotations" id="rs"}
              <div class="carousel-item {if $key == 0}active{/if}">
                <img class="d-block w-100" src="{$rs.ad_path}" alt="First slide">
              </div>
              {/volist}
              <!--                            <div class="carousel-item">-->
              <!--                                <img class="d-block w-100" src="./static/home/default/temporary-img/recommended.jpg" alt="Second slide">-->
              <!--                            </div>-->
              <!--                            <div class="carousel-item">-->
              <!--                                <img class="d-block w-100" src="./static/home/default/temporary-img/recommended.jpg" alt="Third slide">-->
              <!--                            </div>-->
            </div>
            <a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
              <span class="carousel-control-prev-icon" aria-hidden="true"></span>
              <span class="sr-only">Previous</span>
            </a>
            <a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
              <span class="carousel-control-next-icon" aria-hidden="true"></span>
              <span class="sr-only">Next</span>
            </a>
          </div>


        </div>
        {/if}
        <!--                <div class="recommend-bottom">-->
        <!--                    <div class="recommend-item">-->
        <!--                        <a href="calmlog-details.html"><img src="./static/home/default/temporary-img/recommended-left.jpg" class="img-fluid" alt=""></a>-->
        <!--                    </div>-->
        <!--                    <div class="recommend-item">-->
        <!--                        <a href="calmlog-details.html"><img src="./static/home/default/temporary-img/recommended-right.jpg" class="img-fluid" alt=""></a>-->
        <!--                    </div>-->
        <!--                </div>-->

      </div>